/*
 * ikakeibo 0.6.0
 * Copyright (C)2009 wateray and contributors
 * wateray@gmail.com
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

package com.wateray.ipassbook.ui.action;

import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;

import com.wateray.ipassbook.ui.StandardFrame;
import com.wateray.ipassbook.ui.dialog.ReceiptDialog;
import com.wateray.ipassbook.ui.dialog.ReceiptDialog.Type;
import com.wateray.ipassbook.ui.widget.TitleMessageDialog;
import com.wateray.ipassbook.util.ImageManager;
import com.wateray.ipassbook.util.LanguageLoader;

/**
 * @author wateray
 * @create 2009-5-7
 */

public class ShowAddReceiptAction extends AbstractAction {

	/**
	 * 
	 */
	private static final long serialVersionUID = -562994725567244788L;
	public ShowAddReceiptAction(){
		super(LanguageLoader.getString("Add"), ImageManager.getImageIconByShortName("add.png"));
		putValue(SHORT_DESCRIPTION, LanguageLoader.getString("Add"));
		putValue(ACTION_COMMAND_KEY ,LanguageLoader.getString("Add"));
	}
	@Override
	public void actionPerformed(ActionEvent e) {
		// TODO Auto-generated method stub
		ReceiptDialog c = new ReceiptDialog(StandardFrame.getInstance(),LanguageLoader.getString("Add_Receipt"),Type.ADD);

        c.setVisible(true);
	}

}
